package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseComplaintTypeMapper;
import com.ktgj.customer.domain.CaseComplaintType;
import com.ktgj.customer.service.ICaseComplaintTypeService;

/**
 * 投诉工单_投诉大类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-27
 */
@Service
public class CaseComplaintTypeServiceImpl implements ICaseComplaintTypeService 
{
    @Autowired
    private CaseComplaintTypeMapper caseComplaintTypeMapper;

    /**
     * 查询投诉工单_投诉大类
     * 
     * @param complaintTypeId 投诉工单_投诉大类ID
     * @return 投诉工单_投诉大类
     */
    @Override
    public CaseComplaintType selectCaseComplaintTypeById(Long complaintTypeId)
    {
        return caseComplaintTypeMapper.selectCaseComplaintTypeById(complaintTypeId);
    }

    /**
     * 查询投诉工单_投诉大类列表
     * 
     * @param caseComplaintType 投诉工单_投诉大类
     * @return 投诉工单_投诉大类
     */
    @Override
    public List<CaseComplaintType> selectCaseComplaintTypeList(CaseComplaintType caseComplaintType)
    {
        return caseComplaintTypeMapper.selectCaseComplaintTypeList(caseComplaintType);
    }

    /**
     * 新增投诉工单_投诉大类
     * 
     * @param caseComplaintType 投诉工单_投诉大类
     * @return 结果
     */
    @Override
    public int insertCaseComplaintType(CaseComplaintType caseComplaintType)
    {
        return caseComplaintTypeMapper.insertCaseComplaintType(caseComplaintType);
    }

    /**
     * 修改投诉工单_投诉大类
     * 
     * @param caseComplaintType 投诉工单_投诉大类
     * @return 结果
     */
    @Override
    public int updateCaseComplaintType(CaseComplaintType caseComplaintType)
    {
        return caseComplaintTypeMapper.updateCaseComplaintType(caseComplaintType);
    }

    /**
     * 批量删除投诉工单_投诉大类
     * 
     * @param complaintTypeIds 需要删除的投诉工单_投诉大类ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintTypeByIds(Long[] complaintTypeIds)
    {
        return caseComplaintTypeMapper.deleteCaseComplaintTypeByIds(complaintTypeIds);
    }

    /**
     * 删除投诉工单_投诉大类信息
     * 
     * @param complaintTypeId 投诉工单_投诉大类ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintTypeById(Long complaintTypeId)
    {
        return caseComplaintTypeMapper.deleteCaseComplaintTypeById(complaintTypeId);
    }
    /**
     * 查询投诉工单_投诉大类列表
     * @return投诉工单_投诉大类集合
     */
    @Override
    public List<CaseComplaintType> selectTypeList(){
        return caseComplaintTypeMapper.selectTypeList();
    }
}
